<?php
require_once 'application/models/common/Mail.php';

require_once 'Zend/Mail/Transport/Smtp.php';

class SampleController extends Zend_Controller_Action
{
    public function testAction()
    {
        $this->view->assign('key', 'test echo');
        $this->render('message');
    }

    public function mailAction() {


       // $tr = new Zend_Mail_Transport_Smtp('smtp.lolipop.jp');
       // Zend_Mail::setDefaultTransport($tr);


        $mail = new Mail();
        //$mail->sendMail();

        $mail->setBodyText('This is the text of the mail.');
        $mail->setFrom('akigac@gmail.com', 'Some Sender');
        $mail->addTo('akigac@gmail.com', 'Some Recipient');
        $mail->setSubject('TestSubject');
        $mail->send();


        $this->render('compleate');


    }
}

